package net.wanho.service;

import net.wanho.dto.AddAuthDTO;
import net.wanho.dto.AuthInfoDTO;
import net.wanho.po.AuthInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import net.wanho.vo.MenuVo;
import net.wanho.dto.RoleAuthDTO;

import java.util.List;

/**
* @author Administrator
* @description 针对表【auth_info(权限表)】的数据库操作Service
* @createDate 2025-04-28 11:41:58
*/
public interface AuthInfoService extends IService<AuthInfo> {

    List<MenuVo> findMenus();

    List<Integer> selectByUserId(Integer userId);

    List<AuthInfo> findAll();

    Boolean nameCheck(String authName);

    Boolean urlCheck(String authUrl);

    Boolean selectByCode(String authCode);

    void addAuth(AddAuthDTO addAuthDTO);

    void enableAuth(Integer id);

    void disableAuth(Integer id);

    void updateAuth(AuthInfoDTO authInfoDTO);

    //void assignAuth(RoleAuthDTO roleAuthDTO);
}
